  layui.config({
     base: CXL.ctxPath + '/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
	  var form = layui.form;
	  var admin = layui.admin;
	  var table = layui.table;
	  var $ = layui.$;
	  var laydate = layui.laydate;


      var Page = {
                  tableId: 'carInfo-query',
                  url:CXL.ctxPath + '/sys/entrance/carInfoList',
                  initColumn:function(){
                      return [[
                            {type : 'numbers',title : '序号',width:'5%'},
                            {field1:'id',title:'idKey',hide:true,width:'1%'},
                            {field:'gateName',title:'闸口名',width:'8%'},
                            {field:'carLicense',title:'车牌号码',width:'12%'},
                            {field:'detailsMsg',title:'详细信息',width:'18%'},
                            {field:'orderType',title:'废钢种类',width:'10%'},
                            {field:'sourceArea',title:'摆放位置',width:'10%'},
                            {field:'targetArea',title:'接受人',width:'10%'},
                            {field:'startDate',title:'开始时间',width:'12%'},
                            {field:'completeDate',title:'完成时间',width:'12%'}
                      ]];
                  },
              };

    laydate.render({
        elem:'#startDateStr',
    });

    laydate.render({
        elem:'#endDateStr',
    });

    table.render({
        elem:'#' + Page.tableId,
        url:Page.url,
        height:'490px',
        page:true,
        limits:[3,5,7,10,20,30],
        limit:10,
        autoSort:false,
        where: Page.where,
        cols:Page.initColumn()
    });








  })